﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Seagull.Configuration;
using Seagull.Model;

namespace Seagull.DeployMarker
{
    public partial class ChannelInfoForm : Form
    {
        public ChannelInfoForm()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (ChannelInfo == null)
            {
                ChannelInfo = new ChannelInfo();
            }
            propertyGrid1.SelectedObject = ChannelInfo;
        }

        public ChannelInfo ChannelInfo { get; set; }

        private void OkClick(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            Close();
        }

        private void CancelClick(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }
    }
}
